﻿@typeparam TValue
@inherits Blazorise.Select<TValue>
<CascadingValue Value="@this" IsFixed="true">
    @if ( ParentIsFieldBody )
    {
        <div class="field">
            <div class="control">
                <div class="@ClassNames" style="@StyleNames">
                    <select @ref="@ElementRef" id="@ElementId" disabled="@Disabled" readonly="@ReadOnly" multiple="@Multiple" size="@MaxVisibleItems" tabindex="@TabIndex" @onchange="@OnChangeHandler" @attributes="@Attributes">
                        @ChildContent
                    </select>
                </div>
            </div>
            @Feedback
        </div>
    }
    else
    {
        <div class="control">
            <div class="@ClassNames" style="@StyleNames">
                <select @ref="@ElementRef" id="@ElementId" disabled="@Disabled" readonly="@ReadOnly" multiple="@Multiple" size="@MaxVisibleItems" tabindex="@TabIndex" @onchange="@OnChangeHandler" @attributes="@Attributes">
                    @ChildContent
                </select>
            </div>
        </div>
        @Feedback
    }
</CascadingValue>